<script setup>
	import { ref } from 'vue'
	const paymentRef = ref(null)
	
	const onChoosePayment = (val) => {
		console.log(val.paymentMethod)
	}
</script>
<template>
	<view>
		测试
		<button @click="paymentRef.popupOpen()">显示弹出层1</button>
		<!-- 使用定义的组件 -->
		<custom-payment
			ref="paymentRef"
			orderId="11111"
			amount="10"
			@choosePayment="onChoosePayment"
			@close="fn"
		></custom-payment>
	</view>
</template>

<style></style>